package com.jkgh.remedium.test;

import java.util.Arrays;

import com.jkgh.remedium.RemediumServer;
import com.jkgh.remedium.Returner;
import com.jkgh.test.MainServerController;

public class MainServerControllerImpl extends MainServerController {

	protected MainServerControllerImpl(RemediumServer server) {
		super(server);
	}

	@Override
	public void doIt(String a) {
		System.out.println("Doing it: "+a);
	}

	@Override
	public void doTheUsual() {
		System.out.println("Doing the usual");
	}

	@Override
	public void doSomethingElseWith(MainServerController[] ms, int sh, Returner<Integer> returner) {
		System.out.println("Doing something else with m: "+Arrays.toString(ms)+" and sh: "+sh);
		for (MainServerController m: ms) {
			m.doTheUsual();
			m.doIt("oooooooooooooo!");
		}
		returner.returned(ms.length);
	}

}
